Repository navigation
fix(gesture): harden learning from a retyped swipe (#946) - #957
Merged
Merged
Conversation
Follow-ups from the review of the retyped swipe learning: - An empty word (only a space between the deleted swipe and the cursor) crashed in stripWordSeparatorsFromEnd. It is now skipped. - A cursor move by the user forgets the deleted swipe, so text after it that the user did not type is never read as the correction. - With a live text style the swiped word is styled while suggestions are plain: both the deleted word and the word replaced by a picked suggestion are now compared as plain text. - Without suggestion lookups, Enter as an editor action also reads the retyped word.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #954, found in a review of today's changes.
Fixes
StringIndexOutOfBoundsExceptioninstripWordSeparatorsFromEnd): suggestions hidden and auto-correct off, delete a swiped word, move the cursor right past a space, then type a separator or swipe. The word read back was empty. Empty words are now skipped.Testing
moving the cursor after a deleted swipe learns nothing and does not crashfails on currentmainwith the crash and passes with this change.InputLogicTest: 152 tests (with fix(settings): reload settings when the field's IME options change #958's test), 0 failures.